import request from "@/utils/request"

export function getPost(page, limit, data) {
    return request({
        url: `/commentservice/comment-post/getPostListByCommentQueryVoAndTokenOrderByCreatTime/${page}/${limit}`,
        method: 'POST',
        data
    })
}

export function modPost(id, data) {
    return request({
        url: `/commentservice/comment-post/updatePostByPostId/${id}`,
        method: 'PUT',
        data
    })
}

export function delPost(id) {
    return request({
        url: `/commentservice/comment-post/deletePostByPostId/${id}`,
        method: 'DELETE',
    })
}